package com.gdglc.PetySys.service.impl;

import java.util.List;

import com.gdglc.PetySys.dao.PetDao;
import com.gdglc.PetySys.model.Pet;
import com.gdglc.PetySys.service.PetService;

public class petServiceImpl implements PetService {
	private PetDao petDao;
	
	public PetDao getPetDao() {
		return petDao;
	}

	public void setPetDao(PetDao petDao) {
		this.petDao = petDao;
	}

	@Override
	public List<Pet> getAllPet() {		
		return petDao.getAllPet();
	}

	@Override
	public List<Pet> getSomePet(int petBreed) {
		return petDao.getSomePet(petBreed);
	}

	@Override
	public int addOnePet(Pet pet) {
		return petDao.addOnePet(pet);
	}

	@Override
	public Pet getOnePetByName(String petName) {
		return petDao.getOnePetByName(petName);
	}

}
